import request from '@/router/axios'

export function fetchWelcome(userId) {
  return request({
    url: '/admin/syswelcome/findUserWelcome/' + userId,
    method: 'get'
  })
}

export function addObj(obj) {
  return request({
    url: '/admin/syswelcome',
    method: 'post',
    data: obj
  })
}

export function delObj(id) {
  return request({
    url: '/admin/syswelcome/' + id,
    method: 'delete'
  })
}

export function putObj(welId,parentSort) {
  return request({
    url: '/admin/syswelcome/'+welId+'/'+parentSort,
    method: 'put'
  })
}
